package javaobjectsandencapsulation.no6;

/**
 * 企鹅
 */
public class Penguin {
    private String name;
    private int weight;
    public Penguin( String name,int weight){
        this.name=name;
        this.weight=weight;
    }
    public Penguin(String name){
        this.name=name;
    }
    public String getName() {
        return name;
    }

    public int getWeight() {
        return weight;
    }
}
